package com.master.service.repair;

import com.master.constant.model.CsRepair;
import com.master.controller.repair.CsRepairVO;

import java.util.List;
import java.util.Map;

/**
 * @author Heath.Que
 * @version 1.0
 * @classname SysRepairService
 * @description TODO
 * @Date 2021/5/31 13:57
 **/
public interface CsRepairService {

    /**
     * @Description: 按条件获取维修单
     * @Parameter: [params]
     * @Return: List<SysRole>
     * @author: Heath.Que
     * @Date: 2021/5/31
     **/
    List<Map<String, Object>> getRepairsByCondition(Map<String, Object> params);

    /**
     * @Description: 按条件获取维修单
     * @Parameter: [params]
     * @Return: List<SysRole>
     * @author: Heath.Que
     * @Date: 2021/5/31
     **/
    Boolean addRepairs(List<CsRepair> csRepair);

    /**
     * @Description: 批量修改维修单
     * @Parameter: [repairs]
     * @Return: int
     * @author: Heath.Que
     * @Date: 2021/5/31
     **/
    Boolean modifyRepairs(CsRepair repair);

    /**
     * @Description: 维修单分派
     * @Parameter: [repairs]
     * @Return: int
     * @author: Heath.Que
     * @Date: 2021/5/31
     **/
    Boolean allocateRepairs(CsRepairVO csRepairVO);


    /**
     * @Description: 根据角色编号删除维修单
     * @Parameter: [repairId]
     * @Return: int
     * @author: Heath.Que
     * @Date: 2021/5/31
     **/
    Boolean deleteRoleByRepairId(Long repairId);

    /**
     * @Description: 根据角色编号集合批量删除维修单
     * @Parameter: [repairIds]
     * @Return: int
     * @author: Heath.Que
     * @Date: 2021/5/31
     **/
    Boolean deleteRolesByRepairIds(List<Long> repairIds);
}
